package Xuanke;

public class Student extends People{
    private String major;
    private Course[] courses;

    public Student() {
        super();
        courses = new Course[1];
    }
    public Student(int id,String Name,String sex,String major){
        this.id=id;
        this.Name=Name;
        this.sex=sex;
        this.major=major;
        courses = new Course[1];

    }
    public String toString(){
        return "学号："+id+"  姓名："+Name+"  性别："+sex+"  课程"+major;
    }


}
